/*
using MyGeneration/Template/NHibernate (c) by lujan99@usa.net
*/
using System;
using System.Collections;
using System.Collections.Generic;

namespace DokuzEylul.Sinav.Entities
{
	/// <summary>
	/// Sinav object for NHibernate mapped table 'Sinav'.
	/// </summary>
	[Serializable]
    public class Sinav : Unipa.Framework.Data.BaseDbEntity
	{
		#region Member Variables
		protected int m_sinavid;
		protected int m_derskonuid;
		protected string m_sinavadi;
		protected int m_sorusayisi;
		protected int m_sure;
		protected bool m_aktif;
		protected string m_aciklama;
		#endregion
		#region Constructors
			
		public Sinav() {}
					
		public Sinav(int derskonuid, string sinavadi, int sorusayisi, int sure, bool aktif, string aciklama) 
		{
			this.m_derskonuid= derskonuid;
			this.m_sinavadi= sinavadi;
			this.m_sorusayisi= sorusayisi;
			this.m_sure= sure;
			this.m_aktif= aktif;
			this.m_aciklama= aciklama;
		}

		public Sinav(int derskonuid, string sinavadi, int sorusayisi, int sure, bool aktif)
		{
			this.m_derskonuid= derskonuid;
			this.m_sinavadi= sinavadi;
			this.m_sorusayisi= sorusayisi;
			this.m_sure= sure;
			this.m_aktif= aktif;
		}
		
		#endregion
		#region Public Properties
		public  virtual int Sinavid
		{
			get { return m_sinavid; }
			set {m_sinavid= value; }
		}
		public  virtual int DersKonuid
		{
			get { return m_derskonuid; }
			set {m_derskonuid= value; }
		}
		public  virtual string SinavAdi
		{
			get { return m_sinavadi; }
			set {m_sinavadi= value; }
		}
		public  virtual int SoruSayisi
		{
			get { return m_sorusayisi; }
			set {m_sorusayisi= value; }
		}
		public  virtual int Sure
		{
			get { return m_sure; }
			set {m_sure= value; }
		}
		public  virtual bool Aktif
		{
			get { return m_aktif; }
			set {m_aktif= value; }
		}
		public  virtual string Aciklama
		{
			get { return m_aciklama; }
			set {m_aciklama= value; }
		}
		#endregion
		
		#region Equals And HashCode Overrides
		/// <summary>
		/// local implementation of Equals based on unique value members
		/// </summary>
		public override bool Equals( object obj )
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != this.GetType() ) ) return false;
			Sinav castObj = (Sinav)obj;
			return ( castObj != null ) &&
			this.m_sinavid == castObj.Sinavid;
		}
		/// <summary>
		/// local implementation of GetHashCode based on unique value members
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 57;
			hash = 27 * hash * m_sinavid.GetHashCode();
			return hash;
		}
		#endregion
		
	}
}
